package com.lh.service.center;

import com.lh.pojo.OrderItems;
import com.lh.pojo.bo.center.OrderItemsCommentBO;
import com.lh.utils.PagedGridResult;

import java.util.List;

/**
 * @program: foodie-dev
 * @description:
 * @author: LH
 * @create: 2022-05-30 10:04
 **/
public interface MyCommentsService {

    /**
     * 查询待评价商品
     * @param orderId
     * @return
     */
    public List<OrderItems> pending(String orderId);

    /**
     * 保存商品评价信息
     * @param userId
     * @param orderId
     * @param commentList
     */
    public void saveList(String userId, String orderId, List<OrderItemsCommentBO> commentList);

    /**
     * 查询我的全部商品评价
     * @param userId
     * @param page
     * @param pageSize
     */
    public PagedGridResult query(String userId, Integer page, Integer pageSize);
}
